/**
 * 
 */


import React, { Component } from 'react'
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import Admin from './pages/admin/admin.jsx'
import Login from './pages/login/login.jsx'

export default class Index extends Component {
  render(){
    return(
      <BrowserRouter>
        {/* <Switch>
          <Route exact path='/' component={Admin} />
          <Route exact path='/login' component={Login} />
        </Switch> */}

        <Switch>
          <Route exact path='/' component={Login} />
          <Route exact path='/admin' component={Admin} />
        </Switch>
      </BrowserRouter>
    )
  }
}